# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-object-realize-later
pkgver=0.21
pkgrel=5
pkgdesc="Perl/CPAN Module Object::Realize::Later : Delay construction of real data until used"
arch=("any")
url="https://search.cpan.org/~markov/Object-Realize-Later/"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/M/MA/MARKOV/Object-Realize-Later-$pkgver.tar.gz")
sha256sums=('8f7b9640cc8e34ea92bcf6c01049a03c145e0eb46e562275e28dddd3a8d6d8d9')

build() {
  cd "$srcdir"/Object-Realize-Later-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Object-Realize-Later-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
